package com.briup.day22;

/**
 * @author ThinkBook
 */
public class Test04_Assert {
    public static void main(String[] args) {
        int r = test(0);
    }

    public static int test(int a) {
        assert a != 0 : "除数不可以为0！";

        int b = 10;
        int r = b / a;
        System.out.println("r: " + r);
        return r;
    }

}
